<!--conf
<sample in_favorites="true">
              <product version="1.5" edition="pro"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               <sampledescription><![CDATA[Subrows is another new functionality for dhtmlxGrid which is available since v.1.5. Can be used for showing some additional row related block of information.]]></sampledescription></sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Subrow excell</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	
<style>
    .even{
        background-color:#E6E6FA;
    }
    .uneven{
        background-color:#F0F8FF;
    }
</style>
<body>
	<h1>Subrow excell</h1>
	<p>There is a possibility to set subrows using "sub_row" excell. Try to click plus sign.</p>
	<div id="gridbox" style="width: 600px; height: 270px; background-color:white;"></div>
<input type="button" name="a1" value="add row" onClick="mygrid.addRow((new Date()).valueOf(),[1,2,3,4,5],1)">
<input type="button" name="a1" value="delete row" onClick="mygrid.deleteRow(mygrid.getSelectedId())">


<script>
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setHeader("&nbsp;,Book,Author,Price,In Store,Shipping,Bestseller,Date");
	mygrid.setInitWidths("30,140,100,80,80,80,80,70")
	mygrid.setColAlign("right,left,left,right,center,left,center,center")
	mygrid.setColTypes("sub_row,edtxt,ed,price,ch,co,ra,ro");
	mygrid.setColSorting("na,str,str,int,int,int,na,na")

	mygrid.setSkin("dhx_skyblue");
	mygrid.init();

	mygrid.loadXML("../common/grid_srow.xml");
</script>
</body>
</html>
